import request from "@/utils/request";

//员工数据查询
export const queryEmpApi = (name, gender, begin, end, page, pageSize) => 
  request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);

//增加员工
export const addEmpApi = (emp) => request.post('/emps',emp);

//根据id查询员工信息
export const queryEmpById = (id)=>request.get(`/emps/${id}`);

//编辑员工
export const updateEmpApi = (emp) => request.put('/emps',emp);

//删除员工
export const deleteEmpByIdsApi = (ids) => request.delete(`/emps?ids=${ids}`)
